<#list  pages.list as blog>
<#if blog??>
template content
</#if>
</#list>